If you want to add operations to Pico that can't be expressed with the language, you can write code in Think C and paste it into the application as a code resource.
Use Think C to create a code resource of type 'EFCT'. The "main" for this code resource should look like this:
#include <SetUpA4.h> /* Required to access any globals */
RememberA0(); /* Required if any globals are used (e.g. random */
SetUpA4(); /* number seeds). See the Think C manual. */
/* Your code here ... */
RestoreA4();
}
Where "Old" and "New" are 256x256 pixel arrays, indexed like this:
Old[y][x]
with 0 ≤ x < 256, 0 ≤ y < 256. The pixel values range from 0 (black) to 255 (white). Your code should take the pixels in Old, process it, and place the results in New. Examples of source code for effects can be found in Chapter 6 of Holzmann's book.
Name the code resource with your effect, and paste it into the Pico application (be sure to use a resource ID number that doesn't conflict with the effects already there). When you run Pico, your effect's name should appear in the Effects menu.